﻿using ResourceSystem;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public delegate void OnValueChange();

public class ViewModelBase:IViewModel
{
    public void DataBind<T>(BindableProperty<T> property, ValueChangedHandler<T> onValueChange)
    {
        property.OnValueChanged += onValueChange;
    }

    public void DeDataBind<T>(BindableProperty<T> property, ValueChangedHandler<T> onValueChange)
    {
        property.OnValueChanged -= onValueChange;
    }
}
